package com.dxf;


import com.dxf.server.SimpleNettySever;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


/**
 * @author duxvfeng
 *
 * Netty实现一个websocket 推送服务功能
 *
 *
 */
@SpringBootApplication
public class NettyBootstrap {
    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(NettyBootstrap.class, args);
        SimpleNettySever bean = run.getBean(SimpleNettySever.class);
        bean.start();

    }

}
